//
//  NSString+Extension.h
//  AFHttps
//
//  Created by sanmi on 2017/10/21.
//  Copyright © 2017年 吴喜超. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Extension)

/**字典转json传*/
+ (NSString *)returnDictionaryWithJsonString:(NSDictionary *)dic;
/**数组转json传*/
+ (NSString *)returnArrayToJSONString:(NSArray *)array;
/**MD5加密*/
- (NSString *)md5WithString;

#pragma mark-- 正则判断
/**字符串是否包含空值*/
+ (BOOL)isEmpty:(NSString*)str;
/**是否包含汉字*/
+ (BOOL)validateContainChineseWith:(NSString *)str;
/**邮箱验证*/
+ (BOOL)validateEmail:(NSString *)email;
/**手机号码验证*/
+ (BOOL)validateMobile:(NSString *)mobile;
/**电话号验证*/
+ (BOOL)validateIsMobileNumber:(NSString *)mobileNum;
/**车牌号验证*/
+ (BOOL)validateCarNo:(NSString *)carNo;
/**车型*/
+ (BOOL)validateCarType:(NSString *)CarType;
/**用户名*/
+ (BOOL)validateUserName:(NSString *)name;
/**密码 判断是否是字母加数字6-20位*/
+ (BOOL)validatePassword:(NSString *)passWord;
/**昵称 判断是否是中文4-8位*/
+ (BOOL)validateNickname:(NSString *)nickname;
/**身份证号*/
+ (BOOL)validateIdentityCard:(NSString *)identityCard;



@end
